package com.shopowner.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author 
 */
public class Store implements Serializable {
    private String stno;

    private String stname;

    private String stimg;

    private String stphone;

    private String stemail;

    private String staddress;

    private String ststate;

    private String stdesc;

    public List<Coach> getCoachs() {
        return coachs;
    }

    public void setCoachs(List<Coach> coachs) {
        this.coachs = coachs;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public List<Shopowner> getShopowners() {
        return shopowners;
    }

    public void setShopowners(List<Shopowner> shopowners) {
        this.shopowners = shopowners;
    }

    private List<Shopowner> shopowners;

    private List<Coach> coachs;

    private static final long serialVersionUID = 1L;

    public String getStno() {
        return stno;
    }

    public void setStno(String stno) {
        this.stno = stno;
    }

    public String getStname() {
        return stname;
    }

    public void setStname(String stname) {
        this.stname = stname;
    }

    public String getStimg() {
        return stimg;
    }

    public void setStimg(String stimg) {
        this.stimg = stimg;
    }

    public String getStphone() {
        return stphone;
    }

    public void setStphone(String stphone) {
        this.stphone = stphone;
    }

    public String getStemail() {
        return stemail;
    }

    public void setStemail(String stemail) {
        this.stemail = stemail;
    }

    public String getStaddress() {
        return staddress;
    }

    public void setStaddress(String staddress) {
        this.staddress = staddress;
    }

    public String getStstate() {
        return ststate;
    }

    public void setStstate(String ststate) {
        this.ststate = ststate;
    }

    public String getStdesc() {
        return stdesc;
    }

    public void setStdesc(String stdesc) {
        this.stdesc = stdesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Store other = (Store) that;
        return (this.getStno() == null ? other.getStno() == null : this.getStno().equals(other.getStno()))
            && (this.getStname() == null ? other.getStname() == null : this.getStname().equals(other.getStname()))
            && (this.getStimg() == null ? other.getStimg() == null : this.getStimg().equals(other.getStimg()))
            && (this.getStphone() == null ? other.getStphone() == null : this.getStphone().equals(other.getStphone()))
            && (this.getStemail() == null ? other.getStemail() == null : this.getStemail().equals(other.getStemail()))
            && (this.getStaddress() == null ? other.getStaddress() == null : this.getStaddress().equals(other.getStaddress()))
            && (this.getStstate() == null ? other.getStstate() == null : this.getStstate().equals(other.getStstate()))
            && (this.getStdesc() == null ? other.getStdesc() == null : this.getStdesc().equals(other.getStdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStno() == null) ? 0 : getStno().hashCode());
        result = prime * result + ((getStname() == null) ? 0 : getStname().hashCode());
        result = prime * result + ((getStimg() == null) ? 0 : getStimg().hashCode());
        result = prime * result + ((getStphone() == null) ? 0 : getStphone().hashCode());
        result = prime * result + ((getStemail() == null) ? 0 : getStemail().hashCode());
        result = prime * result + ((getStaddress() == null) ? 0 : getStaddress().hashCode());
        result = prime * result + ((getStstate() == null) ? 0 : getStstate().hashCode());
        result = prime * result + ((getStdesc() == null) ? 0 : getStdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", stno=").append(stno);
        sb.append(", stname=").append(stname);
        sb.append(", stimg=").append(stimg);
        sb.append(", stphone=").append(stphone);
        sb.append(", stemail=").append(stemail);
        sb.append(", staddress=").append(staddress);
        sb.append(", ststate=").append(ststate);
        sb.append(", stdesc=").append(stdesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}